{if $options!=''}
	{foreach name=outer item=options_data from=$options}
		<div data-role="fieldcontain">
			{if $options_data.VIEW_RAW == 's'}<fieldset data-role="controlgroup">{/if}
				{if $options_data.VIEW_RAW =='d'}
					<label for="select-choice-{$options_data.ID}" class="select">{$options_data.NAME}:</label>
				{elseif $options_data.VIEW_RAW =='s'}
					<legend>{$options_data.NAME}:</legend>
				{/if}
				{include file=$options_data.VIEW}
			{if $options_data.VIEW_RAW == 's'}</fieldset>{/if}
		</div>
	{/foreach}
{/if}